package cn.edu.njpi.two;

/**
 * @author 朱宗辉
 * @version V1.0
 * @Package cn.edu.njpi.two
 * @date 2021/7/11 21:46
 */
public class Helper {
    public void handle(int count, char c) {
        System.out.println("        handle(" + count + ", " + c + ") BEGIN");
        for (int i = 0; i < count; i++) {
            slowly();
            System.out.print(c);
        }
        System.out.println("");
        System.out.println("        handle(" + count + ", " + c + ") END");
    }

    private void slowly() {
        try {
            Thread.sleep(100);
        } catch (InterruptedException ignored) {
        }
    }
}
